import json
import os
def common_assert(self, resp, status_code, success, code, message):
    self.assertEqual(status_code, resp.status_code)
    self.assertEqual(success, resp.json().get("success"))
    self.assertEqual(code, resp.json().get("code"))
    self.assertIn(message, resp.json().get("message"))

def read_json_data(filename):
    with open(filename,'r',encoding="utf-8") as f:
        json_data = json.load(f)
        list1 = []
        for login_data in json_data:
            list1.append(tuple(login_data.values()))
        return list1


if __name__ == '__main__':
    project_dir = os.path.dirname(__file__)
    filenname = project_dir +"/data/json_data.json"
    read_json_data(filenname)
